package com.cham.video.service;

import com.cham.user.entity.User;
import com.cham.video.dto.VideoInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


/**
 * @author Howl-Xu
 * @version 1.0.0
 * @Description: 请描述一下这个类文件吧
 * @createTime 2020年03月14日 11:31:00
 */
@FeignClient("cham-redis-service")
public interface RedisService {


    @GetMapping("/redisController/getVideoInfoListCache")
    List<VideoInfo> getVideoInfoListCache(@RequestParam("objectName") String objectName);



    @PostMapping("/redisController/saveVideoInfoListCache")
    void saveVideoInfoListCache(@RequestParam("objectName") String objectName, @RequestBody List<VideoInfo> videoInfoList);


//    @GetMapping("/redisController/getVideoInfoFenquParentTop11Cache")
//    List<VideoInfo> getVideoInfoFenquParentTop11Cache(@RequestParam("objectName") String objectName);
//
//
//    @GetMapping("/redisController/getVideoInfoTop4TodayCache")
//    List<VideoInfo> getVideoInfoTop4TodayCache();
//
//    @PostMapping("/redisController/saveVideoInfoTop4TodayCache")
//    void saveVideoInfoTop4TodayCache(@RequestParam("objectName") String objectName, @RequestBody List<VideoInfo> videoInfoList);

}
